package com.zzyl.nursing.service.impl;

import com.zzyl.nursing.mapper.MemberOrdersMapper;
import com.zzyl.nursing.service.IMemberOrdersService;
import com.zzyl.serve.domain.NursingProject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import static com.zzyl.common.utils.PageUtils.startPage;


@Service
public class IMemberOrdersServiceImpl implements IMemberOrdersService {
    @Autowired
    private MemberOrdersMapper memberOrdersMapper;

    @Override
    public List<NursingProject> page(String name, Integer pageNum, Integer pageSize, Integer status) {
        //1.开启分页查询操作
        startPage();
        //2.调用mapper层查询护理项目
        List<NursingProject> list = memberOrdersMapper.page(name, status);
        return list;
    }

    @Override
    public NursingProject getInfo(Long id) {
        return memberOrdersMapper.getInfo(id);
    }
}
